'use strict';

angular.module('myApp.view1', ['ngRoute'])

.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/view1', {
    templateUrl: 'view1/view1.html',
    controller: 'View1Ctrl'
  });
}])
.controller('View1Ctrl',['$scope',function($scope){
$scope.txt="today is san";
$scope.infor="qiqi is leaving and will not return";
}]);
//View1Ctrl.$inject=['$scope'];
//function View1Ctrl($scope){
//$scope.txt="This is a test txt";
//$scope.infor="I have succeed!"
//}
;
